-- 随从库
---@class ServantLibrary
local ServantLib = {}

--- add a servant into servant lib
---@param spec table name, cost, skills
local function loadServant(spec)
  table.insert(ServantLib, spec)
end

-- standard|ex
local standard ={
  { name = "xuchu", cost = 60 }, -- wei
  { name = "ex__caocao", cost = 100 },
  { name = "ex__simayi", cost = 50 },
  { name = "ex__zhangliao", cost = 80 },
  { name = "ex__xiahoudun", cost = 65 },
  { name = "ex__liubei", cost = 100 }, -- shu
  { name = "ex__zhugeliang", cost = 120 },
  { name = "yijik", cost = 90 },
  { name = "ex__sunquan", cost = 130 }, -- wu
  { name = "ex__zhouyu", cost = 110 },
  { name = "ex__huanggai", cost = 200 },
  { name = "ol_ex__zhoutai", cost = 250 },
  { name = "lvbu", cost = 30 }, -- qun
  { name = "diaochan", cost = 70 },
  { name = "ex__huatuo", cost = 90 },
}
-- yj
local yj = {
  { name = "yujin", cost = 100 }, -- wei
  { name = "manchong", cost = 80 },
  { name = "xunyou", cost = 120},
  { name = "caorui", cost = 195 },
  { name = "caozhang", cost = 30 },
  { name = "chenqun", cost = 130 },
  { name = "guohuai", cost = 60 },
  { name = "caozhi", cost = 60 },
  { name = "caochong", cost = 70 },
  { name = "zhongyao", cost = 75 },
  { name = "liuchen", cost = 100 }, -- shu
  { name = "liufeng", cost = 90 },
  { name = "madai", cost = 80 },
  { name = "wuyi", cost = 40 },
  { name = "xiahoushi", cost = 90 },
  { name = "wuxian", cost = 70 },
  { name = "quancong", cost = 90 }, -- wu
  { name = "bulianshi", cost = 90 },
  { name = "cenhun", cost = 70 },
  { name = "sundeng", cost = 90 },
  { name = "chengong", cost = 100}, -- qun
  { name = "liru", cost = 100 },
  { name = "guotupangji", cost = 180 },
  { name = "zhangrang", cost = 200 },
  { name = "gongsunyuan", cost = 80 },
  { name = "caiyong", cost = 70 },
}
-- shzl
local shzl = {
  { name = "dianwei", cost = 90 }, -- wei
  { name = "xunyu", cost = 190 },
  { name = "haozhao", cost = 150 },
  { name = "xiahouyuan", cost = 70 },
  { name = "zhanghe", cost = 55 },
  { name = "liushan", cost = 135 }, -- shu
  { name = "chendao", cost = 50 },
  { name = "zhugezhan", cost = 100 },
  { name = "zhurong", cost =  70 },
  { name = "lusu", cost = 200 }, -- wu
  { name = "zhangzhaozhanghong", cost = 130 },
  { name = "luji", cost = 80 },
  { name = "sunjian", cost = 40 },
  { name = "taishici", cost = 60 },
  { name = "zhangzhaozhanghong", cost = 100 },
  { name = "lukang", cost = 50 },
  { name = "zhangjiao", cost = 90 }, -- qun
  { name = "jiaxu", cost = 100 },
  { name = "yuanshao", cost = 200 },
  { name = "yanliangwenchou", cost = 60 },
  { name = "zhangxiu", cost = 160 },
  { name = "dongzhuo", cost = -100 },
  { name = "godcaocao", cost = 290 }, -- god
  { name = "godzhouyu", cost = 120 },
  { name = "godzhaoyun", cost = 300 },
  { name = "godlvmeng", cost = 140 },
  { name = "godluxun", cost = 140 },
}
-- SP
local sp = {
  { name = "yuejin", cost = 60 }, -- wei
  { name = "yangxiu", cost = 90 },
  { name = "litong", cost = 105 },
  { name = "sp__caiwenji", cost = 100},
  -- { name = "wangji", cost = 100 },
  { name = "jsp__sunshangxiang", cost = 130 }, -- shu
  { name = "dingfeng", cost = 75 }, -- wu
  { name = "zhugejin", cost = 110 },
  { name = "buzhi", cost = 95 },
  { name = "zhugeke", cost = 135 },
  { name = "starsp__zhaoyun", cost = 150 }, -- qun
  { name = "yuanshu", cost = 145 },
  { name = "liuxie", cost = 120 },
  { name = "quyi", cost = 175 },
  { name = "gongsunzan", cost = 40 },
  { name = "hetaihou", cost = 90 },
}
-- jsrg | offline
local jsrg = {
  { name = "xiahourong", cost = 120 }, -- wei
  { name = "js__caofang", cost = 80 },
  { name = "js__guojia", cost = 120 },
  { name = "es__caoang", cost = 80 },
  { name = "js__guanyu", cost = 300 }, -- shu
  { name = "js__zhangfei", cost = 180 },
  { name = "js__luxun", cost = 110 }, -- wu
  { name = "js__fanjiangzhangda", cost = 120 },
  { name = "js__sunjun", cost = 80 },
  { name = "ofl__sunhanhua", cost = 90 },
  { name = "js__huangfusong", cost = 140 }, -- qun
  { name = "js__machao", cost = 130 },
  { name = "yangqiu", cost = 160 },
  { name = "zhanghuan", cost = 90 },
  { name = "caojiewangfu", cost = 100 },
  { name = "js__luzhi", cost = 120 },
}
-- ol
local ol = {
  { name = "ol__dongzhao", cost = 180 }, -- wei
  { name = "ol__zhaoyan", cost = 185 },
  { name = "ol__peixiu", cost = 140 },
  { name = "zhanghu", cost = 180 },
  { name = "tangzi", cost = 90 },
  { name = "caoying", cost = 220 },
  { name = "luzhiw", cost = 140 },
  { name = "caoyu", cost = 120 },
  { name = "qinghegongzhu", cost = 175 },
  { name = "ol_ex__weiyan", cost = 160 }, -- shu
  { name = "ol_ex__huangzhong", cost = 100 },
  { name = "ol__xujing", cost = 75 },
  { name = "ol__mengda", cost = 180 },
  { name = "ol__feiyi", cost = 280 },
  { name = "shamoke", cost = 190 },
  { name = "dongyun", cost = 150},
  { name = "sunqian", cost = 75 },
  { name = "ol__yangyi", cost = 130 },
  { name = "haopu", cost = 60 },
  { name = "ol_ex__fazheng", cost = 80 },
  { name = "olmou__jiangwei", cost = 190 },
  { name = "ol__sufei", cost = 90}, -- wu
  -- { name = "sunhao", cost = 90 },
  { name = "quhuang", cost = 125 },
  { name = "ol__xunchen", cost = 120 }, -- qun
  { name = "duanjiong", cost = 150 },
  { name = "ol__zhujun", cost = 140 },
  { name = "ol_ex__huaxiong", cost = 160 },
  { name = "ol_sp__menghuo", cost = 250 },
  { name = "ol__chendeng", cost = 230 },
  { name = "yanbaihu", cost = 90 },
  { name = "zhanglu", cost = 120 },
  { name = "wutugu", cost = -200 },
  { name = "ahuinan", cost = 60 },
  -- { name = "weizi", cost = 200 },
  { name = "tianchou", cost = 155 },
  { name = "mawan", cost = 110 },
  { name = "budugen", cost = 85 },
  { name = "zhongyan", cost = 200 }, -- jin
  { name = "shibao", cost = 110 },
  { name = "xinchang", cost = 120 },
  { name = "weiguan", cost = 90 },
  { name = "chengjichengcui", cost = 50 },
  { name = "yangyan", cost = 100 },
}
-- mobile
local mobile = {
  { name = "os__jiakui", cost = 325 }, -- wei
  { name = "maojie", cost = 160 },
  { name = "yangfu", cost = 150 },
  { name = "chenzhen", cost = 180 },
  { name = "m_ex__caopi", cost = 110 },
  { name = "m_ex__liaohua", cost = 120 },
  { name = "os__guanqiujian", cost = 100 },
  { name = "jiangji", cost = 165 },
  { name = "fengxi", cost = 100 }, -- shu
  { name = "zhangnan", cost = 70 },
  { name = "m_ex__pangtong", cost = 100 },
  { name = "lingcao", cost = 110 }, -- wu
  { name = "m_ex__xusheng", cost = 240 },
  { name = "sunru", cost = 80 },
  { name = "baoxin", cost = 200 }, -- qun
  { name = "mxing__xuhuang", cost = 200 },
  { name = "mobile__simazhao", cost = 150 },
  { name = "liuzhang", cost = 150 },
  { name = "huchuquan", cost = 175 },
  { name = "os__jiling", cost = 70 },
  { name = "os__haomeng", cost = 80 },
  { name = "xiahouzieh", cost = 120 },
  { name = "wangyue", cost = 135},
}
-- ty
local ty = {
  { name = "zhoubuyi", cost = 280 }, -- wei
  { name = "yanrou", cost = 140 },
  { name = "caomao", cost = 280 },
  { name = "ruanyu", cost = 160 },
  { name = "chentai", cost = 240 },
  { name = "xiahoulingnv", cost = 180},
  { name = "lvdai", cost = 70 }, -- wu
  { name = "panjun", cost = 125 },
  { name = "yanjun", cost = 105 },
  { name = "zhoushan", cost = 325 },
  { name = "liubian", cost = 250 }, -- qun
  { name = "mengyou", cost = 185 },
  { name = "zhangheng", cost = 50 },
  { name = "chengui", cost = 250 },
  { name = "lijue", cost = 220 },
  { name = "zhangkai", cost = 220 },
}

for _, pack in ipairs{ standard, yj, shzl, sp, jsrg, ol, mobile, ty} do
  for _, servant in ipairs(pack) do
    loadServant(servant)
  end
end

return ServantLib
